package com.jeesite.modules.dataScreen.web.dto;

import com.jeesite.modules.dataScreen.constants.ValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
public class SysRoleDto {



    @NotNull(groups = ValidationGroup.UPDATE.class)
    private Integer id;

    @NotBlank(message = "名称为空", groups = ValidationGroup.CREATE.class)
    @NotBlank(message = "名称为空", groups = ValidationGroup.UPDATE.class)
    private String name;

    //描述
    private String remark;

    @NotNull(message = "首页地址为空", groups = ValidationGroup.CREATE.class)
    @NotNull(message = "首页地址为空", groups = ValidationGroup.UPDATE.class)
    private Integer homeUrl;

    @NotEmpty(message = "菜单为空")
    private Set<Integer> menuIds;
}
